﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HotelMan.ascx.cs" Inherits="AdminX_Hotel_HotelMan" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Assembly="Paging" Namespace="CutePager" TagPrefix="cc1" %>


<div>
    <uc1:Alert ID="Alert1" runat="server" />
</div>

<div>

<asp:Label ID="lblLanguage" runat="server" Text="Ngôn ngữ" CssClass="text" Width="80px" ></asp:Label>
    <asp:DropDownList ID="ddlLanguage" runat="server"   AutoPostBack="true"  CssClass ="boxnormal" OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged"   >
    </asp:DropDownList>
    
    <asp:Label ID="lblCountry" runat="server" Width="80px"  CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlCountry" runat="server"  CssClass="boxnormal" 
            onselectedindexchanged="ddlCountry_SelectedIndexChanged" 
        AutoPostBack="True">
    </asp:DropDownList>
    <asp:Label ID="lblRegion" runat="server" Width="80px"  CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlRegion" runat="server" CssClass="boxnormal" 
        onselectedindexchanged="ddlRegion_SelectedIndexChanged">
    </asp:DropDownList><br />
    <asp:Label ID="lblCity" runat="server" Width="80px"  CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlCity" runat="server" CssClass="boxnormal">
    </asp:DropDownList>
    <asp:Label ID="lblStarRating" runat="server" Width="80px"  CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlStarRating" runat="server" CssClass="boxnormal">
    </asp:DropDownList>
    <br />
    <asp:Label ID="lblKeyword" runat="server" Width="80px" Text = "Từ khóa" CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtKeyword" runat="server"  MaxLength="200" CssClass="boxlonger" ></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server"  Width="80px" Text ="Tìm kiếm"  OnClick="btnSearch_Click" />
</div>
<div style="text-align:right">
    <asp:Button ID="btnHotelPopular" runat ="server"   OnClick="btnAddHotelPopular_Click1"  />&nbsp;
    <asp:Button ID="btnAddHotel" runat ="server"   OnClick="btnAddHotel_Click1"  />
    <asp:Button ID="btnHotelBooking" runat="server" OnClick="btnHotelBooking_Click1" />&nbsp;&nbsp;&nbsp;
</div>
<div>
    <asp:Label ID="lblTotalRecord" runat="server" CssClass="text" Font-Bold="true"></asp:Label>
</div>
<div>
    <asp:DataGrid ID="dtgHotel" runat="Server" AutoGenerateColumns="False" DataKeyField="HotelID" CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" BorderStyle="None" BorderWidth="1px" GridLines="Vertical" OnItemCommand="dtgHotel_ItemCommand" OnItemDataBound="dtgHotel_ItemDataBound">
        <HeaderStyle CssClass="grdHeader" BackColor="#698DAD" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White" />
        <Columns>
                <asp:TemplateColumn  HeaderText="STT" >
                    <HeaderStyle Width="30px" ></HeaderStyle >
                    <ItemTemplate>
                         <%# Container.ItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Tên Khách sạn">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                    <div class="grdItemLeft" > <asp:Label ID="lblTitle"   runat="server"></asp:Label><asp:Label ID="lblID" runat="server" Visible="false"></asp:Label>
                    </div>
                       
                    </ItemTemplate>
                </asp:TemplateColumn> 
                
                 <asp:TemplateColumn  HeaderText="Đất nước">
                     <HeaderStyle Width="90px" ></HeaderStyle >
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="lblCountry"   runat="server"></asp:Label>
                        </div>
                       
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Vùng miền">
                     <HeaderStyle Width="90px" ></HeaderStyle >
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="lblRegion"   runat="server"></asp:Label>
                        </div>
                       
                    </ItemTemplate>
                </asp:TemplateColumn> 

                <asp:TemplateColumn  HeaderText="Thành phố">
                     <HeaderStyle Width="90px" ></HeaderStyle >
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="lblCity"   runat="server"></asp:Label>
                        </div>
                       
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Số sao">
                     <HeaderStyle  Width="60px" ></HeaderStyle >
                    <ItemTemplate>
                    <div > <asp:Label ID="lblStarRating"   runat="server"></asp:Label> </div>
                    </ItemTemplate>
                </asp:TemplateColumn> 


                <asp:TemplateColumn HeaderText="Ưu tiên">
                <HeaderStyle></HeaderStyle>
                <ItemTemplate>
                <asp:TextBox ID="txtPriority" Width="30px" runat="server"></asp:TextBox>
                </ItemTemplate>
            </asp:TemplateColumn>
            <asp:TemplateColumn  HeaderText="Tình trạng">
                    <HeaderStyle Width = "80px" ></HeaderStyle >
                <ItemTemplate>
                    <asp:LinkButton ID="lnkActive" runat="server" Text="Hoạt động" CommandName="Active" CausesValidation="false" ForeColor ="green"></asp:LinkButton>
                    <asp:LinkButton ID="lnkInactive" runat="server" Text="Không hoạt động" CommandName="Inactive" CausesValidation="false" ForeColor="red"  ></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateColumn>


                <asp:TemplateColumn  HeaderText="Tùy chọn">
                    <HeaderStyle Width="130px"  ></HeaderStyle >
                    <ItemTemplate>
                      
                       <asp:LinkButton ID="lnkEdit" runat="server" Text="Sửa" CommandName="Edit" ForeColor = "green" ></asp:LinkButton> |
                      <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false" ForeColor="red"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
        </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
</div>
<div id="tblWarning" runat="server"  align="center">
    <asp:Label ID="lblWarning" runat="server"  ForeColor="black" Font-Bold="true"></asp:Label>
</div>
<br />
<div  style="float:right " >
        <asp:Button ID="btnUpdate" runat="server" align="right" 
            onclick="btnUpdate_Click"/>
    </div>
    <br />
<div align="right" style="width:100%; color: black">
    <cc1:pager id="Pager1" OnCommand="pager_Command"  runat="server"></cc1:pager>
</div>